package com.dk.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
//@ConfigurationProperties(prefix = "user")
@Component
public class pojo {
    @Value("${user.uid}")
    private Integer uid;
    private String uname;
    private Integer age;

    public Integer getUid() {
        return uid;
    }

    @Override
    public String toString() {
        return "pojo{" +
                "uid=" + uid +
                ", uname='" + uname + '\'' +
                ", age=" + age +
                ", birth=" + birth +
                '}';
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    private Date birth;
}
